package ar.com.lemil.bb.utils.log;

import net.rim.device.api.i18n.SimpleDateFormat;


public class Logger implements ILogger{

	private static final Logger instance = new Logger();
	
	public static Logger getInstance(){
		return instance;
	}
	
	ILogger target = null;
	public void setILogger(ILogger logger){
		this.target = logger;
	}
	
	SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss.SSS");
	
	public void log(String message){
		if(target != null){
			//String t = sdf.format(new Date());
			//t = "[" + t + "] " + message;
			String t = message;
			target.log(t);
		}
	}

	public void status(String message) {
		if(target != null){
			target.status(message);
		}
	}
	
	
	
}
